package com.example.personal.aiagent.health.controller;

import com.example.personal.aiagent.common.model.vo.SuccessResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 健康检查
 */
@Controller
@RequestMapping("/health")
@Slf4j
public class HealthController {
    @ResponseBody
    @GetMapping("/auth")
    public SuccessResponse auth() {
        log.debug("health check with auth");
        return new SuccessResponse();
    }

    @ResponseBody
    @GetMapping("/noauth")
    public SuccessResponse noauth() {
        log.debug("health check with no auth");
        return new SuccessResponse();
    }
}
